package com.ruoyi.yljf.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.yljf.util.CommonNotice;
import lombok.Data;

import java.util.Date;

/**
 * 医案对象 yljf_medical_notice
 * 
 * @author metaee
 * @date 2025-03-25
 */
@Data
@TableName(value = "yljf_medical_notice")
public class MedicalNotice extends CommonNotice {
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /** 笔记id */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 用户姓名 */
    @Excel(name = "用户姓名")
    private String userName;

    /** 用户头像 */
    @Excel(name = "用户头像")
    private String avatar;

    /** 医案 id */
    @Excel(name = "医案 id")
    private Long curId;

    /** 医案姓名 */
    @Excel(name = "医案姓名")
    private String name;

    /** 笔记内容 */
    @Excel(name = "笔记内容")
    private String noticeContent;

    /** 点赞量 */
    @Excel(name = "点赞量")
    private Long likes;

    /** 是否公开（0否/1是） */
    @Excel(name = "是否公开", readConverterExp = "0=否/1是")
    private String open;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date creatTime;

}
